<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>添加活动</title>
		<link href="__STATIC__/pintuer4/css/admin.css" rel="stylesheet" type="text/css" />
    	<link href="__STATIC__/pintuer4/css/pintuer.css" rel="stylesheet" type="text/css" />
	</head>

	<body>
		{include file="Public/header"}
		<!--内容-->
		<div class="admin" style="width:80%;margin:0 auto;">
			<form method="post" action="{:url('Active/active_add')}" class="form form-block" enctype="multipart/form-data">

				<div class="form-group">
					<div class="label"><label for="atvTitle">活动标题</label></div>
					<div class="field">
						 <input type="text" class="input" id="title" name="atvTitle" size="50" data-validate="required:必填"/>
					</div>
				</div>
				<div class="form-group">
				    <div class="label"><label for="face">活动封面</label></div>
				    <div class="field">
				      <a class="button input-file" href="javascript:void(0);">+ 浏览文件<input size="100" name="file" type="file"/></a>
				    </div>
				</div>
				<div class="form-group">
					<div class="label"><label for="actAddress">活动地址</label></div>
					<div class="field">
						 <input type="text" class="input" id="actAddress" name="actAddress" size="100" data-validate="required:必填"/>
					</div>
				</div>
				<div class="form-group">
				    <div class="label"><label for="applyStartTime">报名开始时间</label></div>
				    <div class="field">
				      <input type="text" class="input" id="applyStartTime" name="applyStartTime"  size="50" data-validate="required:必填" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
				    </div>
				</div>
				<div class="form-group">
				    <div class="label"><label for="applyEndTime">报名结束时间</label></div>
				    <div class="field">
				      <input type="text" class="input" id="applyEndTime" name="applyEndTime"  size="50" data-validate="required:必填" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
				    </div>
				</div>
				<div class="form-group">
					<div class="label"><label for="content">是否点赞</label></div>
					<div class="field">
						<select class="input" name="isGoodUp">
							<option value="1">是</option>
							<option value="0">否</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<div class="label"><label for="maxJoinNum">报名人数</label></div>
					<div class="field">
						 <input type="text" class="input" id="maxJoinNum" name="maxJoinNum" size="50" data-validate="required:必填 ,plusinteger:正整数 "/>
					</div>
				</div>
				<div class="form-group">
				    <div class="label"><label for="startTime">活动开始时间</label></div>
				    <div class="field">
				      <input type="text" class="input" id="startTime" name="startTime"  size="50" data-validate="required:必填" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
				    </div>
				</div>
				<div class="form-group">
				    <div class="label"><label for="endTime">活动结束时间</label></div>
				    <div class="field">
				      <input type="text" class="input" id="endTime" name="endTime"  size="50" data-validate="required:必填" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
				    </div>
				</div>
				<div class="form-group">
					<div class="label"><label for="abstract">活动流程</label></div>
					<div class="field">
						 <script id="container" name="actFlow" type="text/plain">
          
        				</script>
					</div>
				</div>
				<div class="form-group">
					<div class="label"><label for="actCodition">报名条件</label></div>
					<div class="field">
						 <script id="actCodition" name="actCodition" type="text/plain">
          
        				</script>
					</div>
				</div>
				
				<div class="form-button">
				<button class="button border-green" type="submit">添加</button>
				</div>
			</form>

		</div>
		<!--底部-->
		
		<script type="text/javascript" src="__STATIC__/pintuer4/js/jquery.js"></script>
    	<script type="text/javascript" src="__STATIC__/pintuer4/js/pintuer.js"></script>
    	<script type="text/javascript" src="__STATIC__/pintuer4/js/respond.js"></script>
    	<script type="text/javascript" src="__STATIC__/pintuer4/js/layer.js"></script>
    	<script type="text/javascript" src="__STATIC__/pintuer4/js/admin.js"></script>
    	<script type="text/javascript" src="/static/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="/static/ueditor/ueditor.config.js"></script>
    	<!-- 编辑器源码文件 -->
    	<script type="text/javascript" src="/static/ueditor/ueditor.all.js"></script>
		<script>
			$(function() {
				// 实例化编辑器 
				var editor = UE.getEditor('container');
				var editor1 = UE.getEditor('actCodition');
				
				//大于移动端800宽度才弹出提示
				if ($(window).width() >= 800) {
					layer.open({
						type: 1,
						shade: false,
						title: false, //不显示标题
						area: ['420px', '640px'],
						content: $('#alert-talk'), //捕获的元素
						cancel: function(index) {
							layer.close(index);
						}
					});
				}
			});
		</script>
	</body>

</html>